package com.lkpstudy.rbac.vo;

/**
 * @author likaiping
 * @editTime 2024/4/19 14:28
 */
public enum ResultCode {
    /**
     * 操作成功
     */
    SUCCESS(2000,"操作成功"),/**
     * 操作失败
     */
    ERROR(1000, "服务器开小差！请稍后重试！"),
    /**
     * 数据库错误
     */
    SQL_ERROR(1001,"数据库错误")
    ;


    /**
     * 错误码
     */
    private int code;
    /**
     * 错误信息
     */

    ResultCode(int code, String message) {
        this.code = code;
        this.message = message;
    }
    private String message;
    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

}
